package com.example.money.Service.Impl;

import com.example.money.Dao.LoginDao;
import com.example.money.Entity.Login;
import com.example.money.Service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginImpl implements LoginService {
    /**
     * 登陆的业务实现类
     */
    @Autowired
    private LoginDao loginDao;

    @Override
    public boolean login(Login login) {
        Login i=loginDao.login(login);
        return i!=null;
    }
}
